package com.easy.dao;

import com.easy.bean.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface CartDao {

    int add(@Param("cart")Cart cart);
    int edit(@Param("cart")Cart cart);
    int delete(@Param("cart")Cart cart);
    Cart getCart(@Param("cart")Cart cart);
   List<Cart> getCarts(@Param("userid") int  userid );
}
